package Java2;

import java.util.*;
public class ReverseString {

	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		System.out.println("Enter the String");

		String str = input.nextLine();
		String rev = "";
		for(int i=str.length()-1;i>=0;i--)
		{
			rev = rev + str.charAt(i);

		}

		System.out.println("The Reverse String is" +" " + rev);

	}
}
